//
//  LSZHotTopicTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/24.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZHotTopicTableViewCell.h"

@implementation LSZHotTopicTableViewCell

-(id)initWithHotToPic:(NSArray *)array
{
    self = [super init];
    if (self) {
        UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
        CGFloat width = (ScreenWidth-40-50)/2;
        flowLayout.itemSize = CGSizeMake(width,80);
        flowLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;//水平滚动
        flowLayout.sectionInset = UIEdgeInsetsMake(10, 10, 10, 0);
        flowLayout.minimumLineSpacing = 8;//间距
        flowLayout.minimumInteritemSpacing = 8;

        LSZHotCollectionVC * hotCollectionView = [[LSZHotCollectionVC alloc]initWithFrame:CGRectMake(0,0 ,ScreenWidth,100) collectionViewLayout:flowLayout];
        hotCollectionView.array = array;
        self.hotCollectionVC = hotCollectionView;
//        myCollectionView.classManager = classManager;
        hotCollectionView.scrollsToTop = NO;
        hotCollectionView.showsVerticalScrollIndicator = NO;
        hotCollectionView.showsHorizontalScrollIndicator = NO;
        [self.contentView addSubview:hotCollectionView];
    }
    return self;
}
@end
